namespace Cik.Gapi4Net.Domain.Input.Validator
{
    using FluentValidation;

    public abstract class ValidationBase<T> : AbstractValidator<T> where T : IEntity
    {
        protected ValidationBase()
        {
            RuleFor(entity => entity.Version).NotNull();
            RuleFor(entity => entity.Query).NotNull();
        }
    }
}